<template>
  <div>
    <div class="info-content">
      <div class="info-content-item">
          <span class="label">单据号:</span>
          <span class="value">{{props.content?.no}}</span>
      </div>
      <div class="info-content-item">
          <span class="label">预支项目:</span>
          <span class="value">{{props.content?.project.title}}</span>
      </div>
      <div class="info-content-item">
          <span class="label">日期:</span>
          <span class="value">{{props.content?.date}}</span>
      </div>
      <div class="info-content-item">
          <span class="label">预支类目:</span>
          <span class="value">{{props.content?.feeitem.title}}</span>
      </div>
      <div class="info-content-item">
          <span class="label">预支金额:</span>
          <span class="value">{{props.content?.amount}}</span>
      </div>
      <div class="info-content-item">
          <span class="label">备注:</span>
          <div class="value">{{props.content?.remarks ? props.content?.remarks : ''}}</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
  import { defineProps } from 'vue'
  const props = defineProps({
    content: Object
  })

</script>

<style scoped lang="scss">
.info-content-item {
            display: flex; justify-content: space-between; padding: 5px 10px; align-items: center;
            .label { display: inline-block; white-space: nowrap; padding-right: 13px;}
            .value {
                .ml-2 { 
                    margin-bottom: 10px;
                    margin-right: 10px
                }
            }
            div.value {
                
            }
        }
</style>